package org.nzdl.kea;

import java.io.InputStream;
import java.net.URI;
import java.net.URISyntaxException;


public class KEAEnvConfig {
	
	
	
	
	public static URI findResourceFile(String file) throws URISyntaxException{
		URI uri = Thread.currentThread().getContextClassLoader().getResource(file).toURI();
		return uri;
		
	}
	
	public static InputStream findResourceASStream(String file){
		InputStream ins = Thread.currentThread().getContextClassLoader().getResourceAsStream(file);
		return ins;
	}

}
